package com.sample.provider.controller;


import com.sample.provider.entity.Cert;
import com.sample.provider.mapper.CertMapper;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Description:
 * @Author: Chen Xingjie
 * @Date: 2019/1/22
 */
@RestController
@RequestMapping("/test")
public class TestController {
    @Resource
    private CertMapper certMapper;

    @RequestMapping("/{id}")
    public Cert getOne(@PathVariable Integer id){
        return (Cert)certMapper.selectByPrimaryKey(id);
    }


}
